

Pod::Spec.new do |s|
  s.name             = "BCRouteKit"
  s.version          = "1.0.0"
  s.summary          = "iOS daoublefit page kit"
  s.description      = <<-DESC.gsub(/^\s*\|?/,'')
                       An optional longer description of Huihui Health

                       | * Markdown format.
                       | * Don't worry about the indent, we strip it!
                       DESC
  s.homepage         = "https://gitlab.leke.cn/health-huihui/app/ios/ios-component/BCRouteKit.git"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'BSD'
  s.author           = { "chasel" => "chenchun1@cnstrong.cn" }
  s.source           = { :git => "git@gitlab.leke.cn:health-huihui/app/ios/ios-component/BCRouteKit.git", :branch => "master" }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.platform     = :ios, '9.0'
  s.requires_arc = true
  s.default_subspec = 'Core'

  #路由模块
  s.subspec 'Core' do |core|
      core.public_header_files = 'Core/**/BCRouteKit.h', 'Core/**/BCRouteKitPublic.h', 'Core/**/BCRouteUtils.h', 'Core/**/BCRouteRequest.h', 'Core/**/BCRouterProtocol.h', 'Core/**/BCRouter.h', 'Core/**/ZHWebPage.h'
      core.source_files = 'Core/**/*.{h,m}'
      core.dependency 'BCFoundation'
      core.dependency 'BCUIKit'
      core.dependency 'BCComConfigKit'
  end
  
  #支付模块
  s.subspec 'Pay' do |pay|
      pay.public_header_files = 'Pay/*.h'
      pay.source_files = 'Pay/*.{h,m}'
      pay.dependency 'BCRouteKit/Core'
  end
  
    #webview模块
  s.subspec 'Webview' do |webview|
      webview.public_header_files = 'Webview/*.h'
      webview.source_files = 'Webview/*.{h,m}'
      webview.dependency 'BCRouteKit/Core'
      webview.dependency 'BCFoundation'
      webview.dependency 'BCUIKit'
      webview.dependency 'Masonry'
      webview.dependency 'BCFileLog'
  end
  
  #flutter swift路由模块
  s.subspec 'FLBSwift' do |flbSwift|
    flbSwift.source_files = 'Flutter/swift/*.{wift}'
    
    flbSwift.dependency 'flutter_boost'
  end
  
  #RN 路由模块
  s.subspec 'RNRouter' do |rnRouter|
    rnRouter.public_header_files = 'RNRouter/*.h'
    rnRouter.source_files = 'RNRouter/*.{h,m}'
    rnRouter.dependency 'BCRouteKit/Core'
    rnRouter.dependency 'React'
  end
 

end
